<?php
/**
 * Created by PhpStorm.
 * User: krystal
 * Date: 2019/4/2
 * Time: 14:01
 */

use think\Env;

$link_prefix = Env::get('host.photo');
$pray_coin_price = 1;//许愿充值默认金额
return [
    'close_order_time' => Env::get('queue.close_order_delay'),
    'close_answer_time' => 300,
    'order_type' => [
        'rec' => 1,
        'fortune' => 2,
        'map' => 3,
        'video' => 4
    ],
    'order_status' => [
        'underway_order' => '4',
        'complete_order' => '1,2,3',
        'unpaid_order' => '0',
        'prepaid_order' => '1'
    ],
    'order_icon' => [
        $link_prefix . 'test/order/unpaid.png',
        $link_prefix . 'test/order/computing.png',
        $link_prefix . 'test/order/cancel.png',
        $link_prefix . 'test/order/completed.png',
        $link_prefix . 'test/order/completed.png',
        $link_prefix . 'test/order/completed.png',
    ],
    //商城订单列表按钮
    'mall_order_btn' => [
        0 => [
            0 => [
                'name' => '再次购买',
                'type' => 5
            ],
            1 => [
                'name' => '去付款',
                'type' => 2
            ],
        ],
        1 => [
            0 => [
                'name' => '再次购买',
                'type' => 5
            ],
        ],
        2 => [
            0 => [
                'name' => '删除',
                'type' => 1
            ],
            1 => [
                'name' => '再次购买',
                'type' => 5
            ],
        ],
        3 => [
            0 => [
                'name' => '删除',
                'type' => 1
            ],
            1 => [
                'name' => '再次购买',
                'type' => 5
            ],
        ],
        4 => [
            0 => [
                'name' => '删除',
                'type' => 1
            ],
            1 => [
                'name' => '再次购买',
                'type' => 5
            ],
        ],
        5 => [
            0 => [
                'name' => '查看物流',
                'type' => 7
            ],
            1 => [
                'name' => '再次购买',
                'type' => 5
            ],
            2 => [
                'name' => '确认收货',
                'type' => 8
            ],
        ],
    ],
    //列表订单按钮
    'index_order_btn' => [
        0 => [
            0 => [
                'name' => '去付款',
                'type' => 2
            ],
        ],
        1 => [
            0 => [
                'name' => '查看订单',
                'type' => 3
            ],
        ],
        2 => [
            0 => [
                'name' => '删除',
                'type' => 1
            ],
//            1 => [
//                'name' => '再次购买',
//                'type' => 5
//            ],
        ],
        3 => [
            0 => [
                'name' => '删除',
                'type' => 1
            ],
        ],
        4 => [
            0 => [
                'name' => '删除',
                'type' => 1
            ],
        ],
    ],
    //详情订单按钮
    'read_order_btn' => [
        0 => [
            0 => [
                'name' => '取消订单',
                'type' => 4
            ],
            1 => [
                'name' => '支付',
                'type' => 2
            ],
        ],
        1 => [],
        2 => [
            0 => [
                'name' => '再次购买',
                'type' => 5
            ],
        ],
        3 => [
            0 => [
                'name' => '再次购买',
                'type' => 6
            ],
        ],
        4 => [
            0 => [
                'name' => '再次购买',
                'type' => 6
            ],
        ],
    ],
    //许愿商品
    'pray_goods' => [
        10000 => [
            'id' => 10000,
            'icon' => '/test/index/pray_1.png',   // toast许愿背景图
            'name' => '婚恋',
            'title' => '许愿婚恋运', // 许愿名字
            'coin_num' => 10,   // 许愿准了币数量
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,  // 超过基数
        ],
        10001 => [
            'id' => 10001,
            'icon' => '/test/index/pray_5.png',
            'name' => '学业',
            'title' => '许愿学业运',
            'coin_num' => 10,
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,
        ],
        10002 => [
            'id' => 10002,
            'icon' => '/test/index/pray_2.png',
            'name' => '工作',
            'title' => '许愿工作运',
            'coin_num' => 10,
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,
        ],
        10003 => [
            'id' => 10003,
            'icon' => '/test/index/pray_3.png',
            'name' => '财富',
            'title' => '许愿财富运',
            'coin_num' => 10,
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,
        ],
        10004 => [
            'id' => 10004,
            'icon' => '/test/index/pray_5.png',
            'name' => '出行',
            'title' => '许愿出行运',
            'coin_num' => 10,
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,
        ],
        10005 => [
            'id' => 10005,
            'icon' => '/test/index/pray_6.png',
            'name' => '健康',
            'title' => '许愿健康运',
            'coin_num' => 10,
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,
        ],
        10006 => [
            'id' => 10006,
            'icon' => '/test/index/pray_1.png',
            'name' => '交际',
            'title' => '许愿交际运',
            'coin_num' => 10,
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,
        ],
        10007 => [
            'id' => 10007,
            'icon' => '/test/index/pray_6.png',
            'name' => '家人',
            'title' => '许愿家庭和睦',
            'coin_num' => 10,
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,
        ],
        10008 => [
            'id' => 10008,
            'icon' => '/test/index/pray_4.png',
            'name' => '心情',
            'title' => '许愿心情愉悦',
            'coin_num' => 10,
            'now_prize' => $pray_coin_price,   // 许愿充值金额
            'start_num' => 70,
        ],
    ],
    //苹果准币商品
    'ios_coin_goods' => [
        20000 => [
            'id' => 20000,
            'name' => '55准币',
            'coin_num' => 55,   // 准币数量
            'now_prize' => 8,   // 充值金额
            'received_price' => 5.5, //到账金额
        ],
        20001 => [
            'id' => 20001,
            'name' => '220准币',
            'coin_num' => 220,   // 准币数量
            'now_prize' => 32,   // 充值金额
            'received_price' => 22 //到账金额
        ],
        20002 => [
            'id' => 20002,
            'name' => '590准币',
            'coin_num' => 590,   // 准币数量
            'now_prize' => 85.8,   // 充值金额
            'received_price' => 59 //到账金额
        ],
        20003 => [
            'id' => 20003,
            'name' => '722准币',
            'coin_num' => 722,   // 准币数量
            'now_prize' => 105,   // 充值金额
            'received_price' => 72.2 //到账金额
        ],
        20004 => [
            'id' => 20004,
            'name' => '1169准币',
            'coin_num' => 1169,   // 准币数量
            'now_prize' => 170,   // 充值金额
            'received_price' => 116.9 //到账金额
        ],
        20005 => [
            'id' => 20005,
            'name' => '1499准币',
            'coin_num' => 1499,   // 准币数量
            'now_prize' => 218,   // 充值金额
            'received_price' => 149.9 //到账金额
        ],
        20006 => [
            'id' => 20006,
            'name' => '2056准币',
            'coin_num' => 2056,   // 准币数量
            'now_prize' => 299,   // 充值金额
            'received_price' => 205.6 //到账金额
        ],
        20007 => [
            'id' => 20007,
            'name' => '3225准币',
            'coin_num' => 3225,   // 准币数量
            'now_prize' => 469,   // 充值金额
            'received_price' => 322.5 //到账金额
        ],
        20008 => [
            'id' => 20008,
            'name' => '5556准币',
            'coin_num' => 5556,   // 准币数量
            'now_prize' => 808,   // 充值金额
            'received_price' => 555.6 //到账金额
        ],
        20009 => [
            'id' => 20009,
            'name' => '9613准币',
            'coin_num' => 9613,   // 准币数量
            'now_prize' => 1398,   // 充值金额
            'received_price' => 1177.7//到账金额
        ],
    ]
];
